<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" class="required-validate" onsubmit="return navTabSearch(this)">
	<input type="hidden" id="advancedStatus" name="advancedStatus" value="${condition.advancedStatus!''}" />
	<div class="pageHeader">
		<div class="searchBar">
			<ul class="searchContent">
				<li><label><@label key='operationTaskNum.C,colon'>工序任务单编号：</@label></label> <input type="text" name="operationTaskNum" value="${condition.operationTaskNum!''}" /></li>
				<li><label><@label key="operationCode.C,colon">工序编号：</@label></label> <input type="text" class="textInput" name="operationCode" value="${condition.operationCode!''}" /></li>
				<li><label><@label key="operationTaskstatus.C,colon">工序任务单状态：</@label></label> <select name="statusECode">
						<option value=""><@label key='all.C'>所有</@label></option> <#if operationTaskStatus??> <#list operationTaskStatus as ecode>
						<option value="${ecode.eCode!''}"<#if condition.statusECode?? && condition.statusECode == ecode.eCode>selected</#if>>${ecode.eCodeText!''}</option> </#list> </#if>
				</select></li>			
			</ul>
			<ul class="searchContent">
				<li><label><@label key="productionControlNum.C,colon">生产管理号：</@label></label> <input type="text" name="productionControlNum" value="${condition.productionControlNum!''}"></li>
				<li><label><@label key="workUnitCode.C,colon">作业单元编号：</@label></label> <input type="text"  name="workUnitCode" value="${condition.workUnitCode!''}"></li>
				<li><label><@label key="personnelCode.C,colon">人员编号：</@label></label> <input class="look" id="personnelLookup.personnelCode" name="lastPersonnelCode" type="text" postField="personnelCode" suggestFields="personnelCode,personnelName" value="${condition.lastPersonnelCode!''}" suggestUrl="${rc.getContextPath()}/manage/personnel/personnelSuggest" lookupGroup="personnelLookup" remote="${rc.getContextPath()}/manage/personnel/validatePersonnel" /> <a class="btnLook" href="${rc.getContextPath()}/manage/personnel/personnelLookUp?lookupType=radio" rel="personnel_dialog" title="<@label key='select.C,personnelCode.C'>选择人员</@label>" lookupGroup="personnelLookup"></a></li>
			</ul>
			<ul class="searchContent">
				<li><label><@label key="productionOrderNum.C,colon">生产订单编号：</@label></label> <input type="text" name="productionOrderNum" value="${condition.productionOrderNum!''}"></li>
				<li><label><@label key='orderType.C,colon'>订单类型：</@label></label> <select name="orderTypeCode">
						<option value=""><@label key='all.C'>所有</@label></option> <#if orderTypes??> <#list orderTypes as orderType>
						<option value="${orderType.orderTypeCode!''}"<#if condition.orderTypeCode?? && condition.orderTypeCode == orderType.orderTypeCode> selected</#if> >${orderType.orderTypeText!''}</option> </#list> </#if>
				</select></li>
				<li class="query">
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit"><@label key="query.B">查询</@label></button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</div>
</form>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<@buttonRight menuCode="EXPORTOPERATIONTASKPROGRESSTOEXCEL" labelKey="add.B" defalutName="导出excel">
			<li><a class="export" mask="true" target='dwzExport' title="<@label key='confirmexportToExcel.M'>确定要导出这些记录吗?</@label>" href="${rc.getContextPath()}/manage/OperationTaskConfirm/exportConfirmRecordSelectToExcel?navTabId=${navTabId!''}"><span><@label key='exportToExcel.D'>导出EXCEL</@label></span> </a></li> </@buttonRight>
		</ul>
	</div>
	<table class="table" width="120%" layoutH="190" id="iTable">
		<thead>
			<tr>
				<th width="30"><@label key="serialNumber.C">序号</@label></th>
				<th width="80"><@label key="confirmType.C">报工类型编号</@label></th>
				<th width="80"><@label key="confirmTime.C">报工时间</@label></th>
				<th width="80"><@label key="startTime.C">开始时间</@label></th>
				<th width="80"><@label key="completedQuantity.C">完工数量</@label></th>
				<th width="80"><@label key="workUnit.C">作业单元</@label></th>
				<th width="80"><@label key="personnelCode.C">员工</@label></th>
				<th width="80"><@label key="operationTask.C">工序任务单</@label></th>
				<th width="80"><@label key="operationTaskstatus.C">任务单状态</@label></th>
				<th width="80"><@label key="productionControlNum.C">生产管理号</@label></th>
				<th width="80"><@label key="orderFormNum.C">订单编号</@label></th>
				<th width="80"><@label key="materialCode.C">物料编号</@label></th>
				<th width="80"><@label key="materialName.C">物料名称</@label></th>
			</tr>
		</thead>
		<tbody>
			<#if page??><#if (page.data?size>0)><#list page.data as operationTaskConfirm>
			<tr target="operationTaskConfirm">
				<td>${page.startRow + operationTaskConfirm_index}</td>
				<td>${operationTaskConfirm.confirmTypeeCode!''}</td>
				<td>${(operationTaskConfirm.confirmDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
				<td>${(operationTaskConfirm.startDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
				<td>${operationTaskConfirm.completedQuantity!''}</td>
				<td>${operationTaskConfirm.workUnitCode!''}</td>
				<td>${operationTaskConfirm.personnelCode!''}</td>
				<td>${operationTaskConfirm.operationTaskNum!''}</td>
				<td><#if operationTaskStatus??> <#list operationTaskStatus as ecode> <#if operationTaskConfirm.statusECode == ecode.eCode>${ecode.eCodeText!''}<#break></#if> </#list> </#if></td>
				<td>${operationTaskConfirm.productionControlNum!''}</td>
				<td>${operationTaskConfirm.productionOrderNum!''}</td>
				<td>${operationTaskConfirm.materialCode!''}</td>
				<td>${operationTaskConfirm.materialText!''}</td>
			</tr>
			</#list> <#else>
			<tr target="operationTaskConfirm">
				<td colspan="20" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
			</tr>
			</#if> <#else>
			<tr target="operationTaskConfirm">
				<td colspan="20" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
			</tr>
			</#if>
		</tbody>
	</table>
	<#include "/common/panelBar.html">
</div> 
